package com.cf.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cf.domain.pojo.News;
import com.cf.domain.vo.TeamVO;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

import java.util.List;

/**
 * @Author lzqinga@126.com
 * @Date 2024/11/14  11:23
 */
public interface NewsMapper extends BaseMapper<News> {

    @Select("SELECT id, title, author, images, type, create_time FROM t_news WHERE flag=1 ORDER BY create_time DESC")
    @Results({
            @Result(property = "createTime", column = "create_time")
    })
    List<News> getAllFlags();
}
